using IService;
using Model.Models;
using IRepository;


namespace Service
{
    [Service]
    public class WXUserService : BaseService<WXUser>, IWXUserService
    {
        public WXUserService(IBaseRepository<WXUser> BaseRepository) : base(BaseRepository)
        {
        }

        public  WXUser GetUserByOpenid(string openid)
        {
            return  _BaseRepository.Query(a => a.IsDelete == false && a.OpenId == openid);
        }
    }
}
